package com.tjtt.gwm.dao; 

import java.util.List;
import java.util.Map;

import org.hibernate.Query;

import com.tjtt.gwm.bean.TdmEquipmentMain;
import com.tjtt.tdm.base.PageResult;

public interface EquipmentDao {
	/**
	 * 周期检定计划
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Aug 5, 2015 3:12:04 PM
	 */
	public PageResult queryZhoujList(Map filterMap);
	
	public PageResult queryDataList(Map filterMap);
	
	public void saveObject(Object object);
	
	public void updateObject(Object object);
	
	public Object getDataById(Class clazz, Long id);
	
	public void exeSql(String sql);
	
	public void deleteData(Object object);
	
	public List queryDataBySql(String sql);
	/**
	 * 设备基本信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:15 AM
	 */
	public PageResult queryEqumentBaseList(Map filterMap);
	/**
	 * 合同信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:18 AM
	 */
	public PageResult queryHetongList(Map filterMap); 
	/**
	 * 设备资料
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:20 AM
	 */
	public PageResult queryShebeizlList(Map filterMap); 
	/**
	 * 维护保养
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:23 AM
	 */
	public PageResult queryWeihbyList(Map filterMap); 
	/**
	 * 设备故障履历
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:29 AM
	 */
	public PageResult queryShebeigzList(Map filterMap); 
	/**
	 * 备件信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:32 AM
	 */
	public PageResult queryBeijianList(Map filterMap); 
	/**
	 * 备件更换历史记录
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:34 AM
	 */
	public PageResult queryBeijianghjlList(Map filterMap); 
	/**
	 * 设备计量信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 28, 2015 11:31:37 AM
	 */
	public PageResult queryShebeijlList(Map filterMap); 
	/**
	 * 获取设备属性
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 31, 2015 11:05:57 AM
	 */
	public PageResult querySbsx(Map filterMap);
	/**
	 * 获取生产厂家信息
	 * @return List
	 * @author Zhanxm
	 * @date Jul 31, 2015 10:41:39 AM
	 */
	public List getSccj();
	/**
	 * 获取供应商信息
	 * @return List
	 * @author Zhanxm
	 * @date Jul 31, 2015 10:41:42 AM
	 */
	public List getGongys();
	/**
	 * 获取合同信息
	 * @return List
	 * @author Zhanxm
	 * @date Jul 31, 2015 3:10:06 PM
	 */
	public List getHetong(String equMainId,String htId);
	/**
	 * 查询设备台账信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Jul 31, 2015 2:01:01 PM
	 */
	public PageResult queryEquipmentTz(Map filterMap);
	/*
	 * 根据用户名称获取用户Id
	 */
	public List queryUserId(String userName);
	
	/*
	 * 根据组织名称获取组织Id
	 */
	public List queryOrgId(String orgName);
	/*
	 * 获取供应商id
	 */
	public List queryGongysId(String gongysName);
	/*
	 * 获取生产厂家id
	 */
	public List querySccjId(String sccjName);
	/*
	 * 根据设备台账名称获取设备台账对象
	 */
	public TdmEquipmentMain queryEquId(String e_name);
	/*
	 * 获取合同
	 */
	public List queryHtNo(String htName);
	/**
	 * 查询设备台账信息
	 * @param filterMap
	 * @return PageResult
	 * @author Zhanxm
	 * @date Sep 13, 2015 2:20:04 PM
	 */
	public PageResult queryEquipmentList(Map filterMap);
	/*
	 * 设备属性列表
	 * wxj
	 */
	public PageResult queryYiqisjjl(Map filterMap);
	
	/*
	 * 获得仪器送修记录
	 * wxj
	 */
	public PageResult queryYiqisxjl(Map filterMap);
	
	/*
	 * 获得仪器送修记录
	 * wxj
	 */
	public PageResult queryYiqijhjl(Map filterMap);

}
